import { createSlice } from '@reduxjs/toolkit'

const UserSlice=createSlice({
    name:"user",
    initialState:{
        account:{}
    },
    reducers:{
        LoginSuccess(state, action){
            state.account=action.payload.account
        }
    }
})
export const { LoginSuccess } = UserSlice.actions

export default UserSlice.reducer